#pragma once
#include "ataskinterface.h"
#include <string>
using std::string;
#include "gdal_priv.h"
#include <qobject.h>

class TheTask : public QObject, public ARSSTaskInterface
{
	Q_OBJECT
public:
	TheTask(string infilename,string outfilename,
		double a1,double a2,double a3,double a4,bool useWarp,string gdalwarp,string vrtTemFilename);
	virtual void run() ;
	bool warp(const string tifFilename, const int wid,const int hei,string& error);
private:
	string _infilename, _outfilename ;
	double _a1,_a2,_a3,_a4;
	bool _useWarp;
	string _gdalwarp;
	string _vrtTemFilename;
signals:
	void onTaskDone();

};

